import {get,post} from '@/js_sdk/utils/request'
import {builderApi} from '@/js_sdk/config.js'


// 创建订单
export const order_save = data => post(builderApi('/lykj-shop/zn/tradeBatch'), data)
// 查询订单
export const get_order = data => get(builderApi('/lykj-shop/zn/tradeList'), data)
// 查询订单
export const get_order_by_id = data => get(builderApi('/lykj-shop/user/order/detail'), data)

//积分兑换商品
export const goods_redeem = data => post(builderApi('/lykj-shop/user/redeem'),data)

export const goods_wxredeem = data => post(builderApi('/lykj-shop/user/wxredeem'),data)



// 查询订单
export const delivery_list = data => get(builderApi('/lykj-shop/zn/deliveryList'), data)

export const delivery_confirm = data => post(builderApi('/lykj-shop/zn/deliveryConfirmReceipt'), data)
export const redeem_confirm = data => post(builderApi('/lykj-shop/user/order/redeemConfirm'), data)

// 查询订单
export const goods_redeem_order = data => get(builderApi('/lykj-shop/user/order/page'), data)

export const delivery_trace = data => get(builderApi('lykj-shop/zn/deliveryTrace'), data)
